package com.richapp.launcher.database.infrared.mode;

import com.j256.ormlite.field.DataType;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.field.types.DateType;
import com.j256.ormlite.table.DatabaseTable;

import java.util.Date;

/**
 * Created by yif on 16/9/6.
 */
@DatabaseTable(tableName = "InfraredVersion")
public class InfraredVersion {

    @DatabaseField(generatedId = true)
    private int id;

    @DatabaseField(columnName = "api_version", canBeNull = false)
    private int apiVersion;    //api版本

    @DatabaseField(columnName = "api_update_time", canBeNull = true, dataType = DataType.DATE)
    private Date apiUpdateTime; //API更新时间

    @DatabaseField(columnName = "api_desc", canBeNull = true)
    private String apiDesc;

    @DatabaseField(columnName = "api_url", canBeNull = true)
    private String apiUrl;

    @DatabaseField(columnName = "db_version", canBeNull = false)
    private int dbVersion;    //数据库版本

    @DatabaseField(columnName = "db_update_time", canBeNull = true, dataType = DataType.DATE)
    private Date dbUpdateTime; //数据库更新时间

    @DatabaseField(columnName = "db_desc", canBeNull = true)
    private String dbDesc; //更新时间

    @DatabaseField(columnName = "db_url", canBeNull = true)
    private String dbUrl; //更新时间


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getApiVersion() {
        return apiVersion;
    }
    public void setApiVersion(int apiVersion) {
        this.apiVersion = apiVersion;
    }

    public Date getApiUpdateTime() {
        return apiUpdateTime;
    }

    public void setApiUpdateTime(Date apiUpdateTime) {
        this.apiUpdateTime = apiUpdateTime;
    }

    public String getApiDesc() {
        return apiDesc;
    }

    public void setApiDesc(String apiDesc) {
        this.apiDesc = apiDesc;
    }

    public String getApiUrl() {
        return apiUrl;
    }

    public void setApiUrl(String apiUrl) {
        this.apiUrl = apiUrl;
    }

    public int getDbVersion() {
        return dbVersion;
    }

    public void setDbVersion(int dbVersion) {
        this.dbVersion = dbVersion;
    }

    public Date getDbUpdateTime() {
        return dbUpdateTime;
    }

    public void setDbUpdateTime(Date dbUpdateTime) {
        this.dbUpdateTime = dbUpdateTime;
    }

    public String getDbDesc() {
        return dbDesc;
    }

    public void setDbDesc(String dbDesc) {
        this.dbDesc = dbDesc;
    }

    public String getDbUrl() {
        return dbUrl;
    }

    public void setDbUrl(String dbUrl) {
        this.dbUrl = dbUrl;
    }


}
